package org.yaonan.bean;

import java.util.Date;

public class YnMessage {
    private Integer id;

    private Integer userid;

    private Integer friendid;

    private String message;

    private Date time;

    private Integer read;
    
   /* private YnUser ynUser;

    public YnUser getYnUser() {
		return ynUser;
	}

	public void setYnUser(YnUser ynUser) {
		this.ynUser = ynUser;
	}*/

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getFriendid() {
        return friendid;
    }

    public void setFriendid(Integer friendid) {
        this.friendid = friendid;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getRead() {
        return read;
    }

    public void setRead(Integer read) {
        this.read = read;
    }

	@Override
	public String toString() {
		return "YnMessage [id=" + id + ", userid=" + userid + ", friendid=" + friendid + ", message=" + message
				+ ", time=" + time + ", read=" + read + "]";
	}
}